package cn.com.chb.dakele.net;

import org.apache.http.client.methods.HttpPost;

import cn.com.chb.dakele.config.Config;

public class HttpPostHead extends HttpPost{
	public HttpPostHead(){
		super();
		this.setHeader("Accept", Config.Accept);
		this.setHeader("Accept-Language", Config.Language);
		this.setHeader("Connection", Config.Connection);
		this.setHeader("User-Agent", Config.Agent);
		this.setHeader("Cache-Control", Config.Cache);
	}
	public HttpPostHead(String url){
		super(url);
		this.setHeader("Host", Http.getHost(url));
		this.setHeader("Accept", Config.Accept);
		this.setHeader("Accept-Language", Config.Language);
		this.setHeader("Connection", Config.Connection);
		this.setHeader("User-Agent", Config.Agent);
		this.setHeader("Cache-Control", Config.Cache);
	}
}
